html,body,div,span,h1,h2,h3,p,a,img,small,ol,ul,li,fieldset,form,label {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

html {
    height: 101%
}

body {
    background: #f7f7f7 url()repeat;
    color: #111;
    line-height: 1.45;
    width: 100%;
    height: 100%;
    font: 90%/1.45 open sans,-apple-system,BlinkMacSystemFont,segoe ui,roboto,oxygen,ubuntu,cantarell,fira sans,droid sans,helvetica neue,Arial,sans-serif
}

a {
    color: #369;
    text-decoration: none
}

a:hover {
    color: #367889;
    text-decoration: none
}

a img {
    border: none
}

h1,h2,h3,.uploader label {
    font-weight: 400;
    margin: 1em 0 .5em
}

h1 {
    color: #112;
    font-size: 190%
}

h2,.uploader label {
    display: block;
    color: #223;
    font-size: 160%
}

h3 {
    color: #334;
    font-size: 140%
}

ul,ol {
    margin: .5em 1em;
    padding: 0 1em
}

li {
    margin: 0 12px
}

p {
    margin: .6em 0
}

.c {
    clear: both
}

#container {
    min-height: 700px;
    text-align: left;
    max-width: 1200px;
    min-width: 770px;
    width: 93%;
    margin: 0 auto
}

#header {
    padding: 15px 0 0;
    position: relative
}

#hb {
    float: right;
    width: 768px;
    height: 90px
}

#menu {
    display: table;
    clear: both;
    list-style: none;
    overflow: hidden;
    padding: 10px 0 0;
    margin: 0;
    width: 100%
}

#menu li {
    display: table-cell;
    margin: 0;
    height: 32px;
    line-height: 32px;
    margin: 0;
    padding: 0
}

#menu li a {
    padding: 2px 0;
    margin: 0;
    text-align: center;
    clear: both;
    display: block;
    height: 30px;
    text-decoration: none;
    padding: 2px 0;
    margin: 0 1px;
    background: #667;
    color: #fff;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    font-size: 14px
}

.lang-en #menu li a,.lang-lv #menu li a {
    font-size: 15px
}

#menu li a:hover {
    background: #556
}

#menu li.active a {
    background: #334
}

#logo {
    display: inline-block;
    height: 50px;
    width: 359px;
    padding: 0;
    margin: 38px 0 3px 3px;
    background: url(/img/logo.png)no-repeat 0 100%;
    background-size: 100%;
    text-indent: -9999px;
    overflow: hidden
}

#content {
    background: #fff;
    clear: both;
    color: #333;
    border-radius: 2px;
    border: 1px solid #eef;
    min-height: 600px;
    display: flex
}

#sidebar {
    padding: 16px;
    width: 300px;
    min-height: 600px
}

#main {
    padding: 10px 16px 10px 10px;
    flex: 1
}

#tool-description {
    background: #fafafa;
    margin: 30px 0;
    padding: 5px 20px 20px;
    color: #444
}

#tool-description p {
    padding: .4em;
    margin: 0
}

footer {
    clear: both;
    text-align: left;
    color: #666
}

#copyright,#footer-menu {
    padding: 6px 0;
    float: left;
    margin: 0
}

#footer-menu {
    float: right;
    list-style: none
}

#footer-menu li {
    float: left;
    padding: 0;
    margin: 0;
    border-left: 1px dotted #aaa
}

#footer-menu li:first-child {
    border: 0
}

#footer-menu li a {
    float: left;
    padding: 1px 6px;
    margin: 0 2px;
    font-size: 90%
}

#footer-menu li.active a {
    text-decoration: underline
}

.uploader {
    padding: 5px 20px 20px;
    background: #dadbef;
    border-radius: 2px
}

.uploader .input.file input {
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 80px 50px;
    max-width: 90%;
    min-width: 60%;
    background: #569;
    outline: 2px dashed #dadbef;
    outline-offset: -10px;
    border: 0;
    border-radius: 3px
}

form .submit,form .input {
    margin: 6px 0
}

form input.text {
    padding: 5px
}

form input.text.number {
    width: 50px
}

#half-left {
    float: left;
    padding: 0 0 15px;
    width: 59%
}

#half-right {
    float: right;
    width: 39%;
    padding: 25px 0 0
}

#filelist {
    margin: 15px 0;
    list-style: none;
    padding: 0
}

#filelist li {
    padding: 4px 10px;
    min-height: 58px;
    margin: 0;
    border: 1px solid #ddd;
    background: #f6f6f6;
    font-weight: 400;
    color: #454545
}

#filelist li strong {
    font-size: 120%;
    font-weight: 400;
    padding-top: 5px;
    display: block
}

#filelist li img.thb {
    float: left;
    width: 58px;
    margin: 0 6px 0 0
}

#filelist li .params {
    color: #666
}

.pg {
    list-style: none;
    padding: 10px;
    margin: 10px 0 15px;
    overflow: auto;
    border: 2px solid #e3e6ec
}

.pg li {
    float: left;
    padding: 10px;
    margin: 8px;
    height: 134px;
    width: 116px;
    background: #f3f6f9;
    text-align: left;
    position: relative;
    border: 1px solid #c3c6cc
}

.action-button {
    text-align: center;
    color: #fff;
    line-height: 30px;
    text-decoration: none;
    padding: 5px 20px;
    background: #569;
    border: 0;
    border-radius: 3px;
    cursor: pointer
}

.action-button:hover {
    color: #fafaff;
    background: #67a
}

.action-button.inactive {
    color: #777;
    background: #eee;
    cursor: wait
}

#upload-description {
    padding-left: 5px;
    font-size: 90%;
    margin-bottom: 10px
}

#half-left .action-button {
    float: right
}

#result {
    width: 80%;
    margin: 40px auto;
    text-align: center;
    color: #333
}

#result a .rs {
    text-decoration: none;
    color: #777;
    font-size: 90%
}

#result a .rs .green {
    color: #393
}

#result a .rs .red {
    color: #933
}

#site-description {
    padding: .6em;
    font-size: 110%
}

#news p {
    padding: 10px 10px 10px 0;
    margin: 0;
    border-bottom: 1px dashed #dde;
    width: 75%
}

.date {
    color: #666
}

.paginator,#news p.paginator {
    text-align: center;
    font-size: 110%;
    border: 0
}

.paginator a {
    border: 1px solid #ddd;
    padding: 5px 15px;
    margin: 3px;
    display: inline-block
}

.paginator a.active {
    background: #569;
    border-color: #569;
    color: #fff
}

#deco {
    float: right;
    margin: 80px
}

#ib {
    max-width: 1200px;
    width: 100%;
    margin: 25px auto 16px
}

#container .actions-menu {
    font-size: 12px;
    line-height: 14px;
    position: relative
}

#container .actions-menu a.toggle {
    padding-right: 16px;
    background: url(/img/plus-small.png)no-repeat 100%
}

#container .actions-menu .action-links {
    display: block;
    position: absolute;
    width: 90px;
    top: 14px;
    left: 0;
    padding: 5px 15px;
    border: 1px solid #e4e6e8;
    background: #fafbfc;
    text-align: left
}

#container .actions-menu .action-links a {
    display: block;
    font-weight: 400
}

.file-menu {
    padding: 5px 0 0;
    margin: 10px 0 0 -2px;
    width: 100%;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    border-radius: 2px
}

.file-menu td {
    padding: 1px
}

.file-menu a {
    font-size: 13px;
    display: block;
    margin: 0 1px;
    padding: 5px 0;
    line-height: 15px;
    text-align: center;
    background: #f1f2f4;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    font-weight: 400;
    text-shadow: 0 1px 0 #fff
}

.file-menu a.save {
    color: green
}

.file-menu a.active {
    background: #fff;
    color: #222
}

.file-menu a:hover,.file-menu a.save:hover {
    background: #fff;
    border: 1px solid #667;
    color: #111;
    text-decoration: none
}

.file-menu a .icon {
    display: block;
    margin: 4px auto;
    width: 30px;
    height: 30px
}

#flashMessage {
    padding: 10px 20px;
    margin: 25px 0 5px;
    border: 1px solid #fafcf9
}

#flashMessage.warning {
    background: #faebcc;
    border: 1px solid #faebcc;
    color: #8a6d3b
}

#flashMessage.error {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442
}

.options {
    position: relative;
    display: block;
    margin: 16px 0;
    padding: 16px;
    background: #f6f9fb;
    border: 1px solid #e6e9eb
}

.options h3 {
    margin: .4em 0
}

.sub-options {
    position: relative;
    display: block;
    margin: 8px 20px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e6e9eb
}

.sub-options:after,.sub-options:before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0 8px 8px;
    display: block;
    width: 0;
    left: 5px;
    border-color: #fff transparent;
    z-index: 1;
    top: -8px
}

.sub-options:before {
    border-color: #e6e9eb transparent;
    z-index: 0;
    top: -9px
}

#target {
    cursor: crosshair
}

@media all and (max-width: 1220px) {
    #menu li a {
        font-size:13px
    }
}

@media all and (max-width: 1120px) {
    #menu li a {
        font-size:12px
    }
}

@media all and (max-width: 1050px) {
    #container {
        width:98%
    }

    #logo {
        margin: 0 0 5px 20px;
        padding: 0
    }

    #menu {
        display: block;
        height: auto;
        margin: 0 -4px;
        padding: 2px
    }

    #menu li {
        display: block;
        float: left;
        height: auto;
        padding: 2px
    }

    #menu li a {
        display: block;
        padding: 4px 20px;
        margin: 2px;
        font-size: 16px;
        border-radius: 2px
    }
}

@media all and (max-width: 800px) {
    #hb {
        display:none
    }

    #container {
        width: 99%;
        overflow: hidden;
        min-width: 470px
    }

    #sidebar {
        display: none
    }

    #main {
        float: none;
        width: 100%;
        padding: 0 10px
    }

    #ib {
        width: 100%;
        height: auto
    }

    #news p {
        width: auto
    }

    #deco {
        margin: 20px
    }

    #half-left,#half-right {
        float: none;
        width: 100%
    }
}

@media(prefers-color-scheme: dark) {
    body {
        background:#111;
        color: #f1f1f1
    }

    .pg {
        border: 2px solid #222
    }

    #menu li a {
        background: #36393f;
        color: #ccc
    }

    #menu li.active a {
        background: #2f3136;
        color: #fff
    }

    #content {
        color: #f1f1f1;
        background: #2f3136;
        border: 1px solid #2f3136
    }

    h1,h2,h3,.uploader label {
        color: #f4f4f8
    }

    #tool-description {
        background: #202225;
        color: #eee
    }

    .uploader {
        background: #202225;
        color: #eee
    }

    .file-menu a {
        color: #eee;
        background: #333;
        border: 1px solid #000;
        text-shadow: 0 1px 0 #000
    }

    #news p {
        border-bottom: 1px dashed #444
    }

    .options {
        background: #36393f;
        border: 1px solid #36393f
    }

    .sub-options {
        background: #40444b;
        border: 1px solid #40444b
    }

    .sub-options:before {
        border-color: #40444b transparent
    }

    .sub-options:after,.sub-options:before {
        border-color: #40444b transparent
    }

    a {
        color: #007fff
    }

    a:hover {
        color: #1090ff
    }

    #logo {
        background: url(/img/logo-inverted.png)no-repeat 0 100%;
        background-size: 100%
    }

    #result {
        color: #aaa
    }

    #footer-menu li {
        border-color: #555
    }

    #filelist li {
        border: 1px solid #111;
        background: #202225;
        color: #eee
    }

    #filelist li .params {
        color: #bbb
    }

    .file-menu a.active {
        background: #202225;
        color: #eee;
        border: 1px solid #555
    }
}

#pdfresizer_com_728x90_responsive_middle {
    margin: 20px auto 0;
    text-align: center;
    display: block;
    clear: both
}

.ads {
    text-align: center;
    overflow: hidden
}

@media(min-width: 735px) {
    .leaderboard {
        height:90px;
        width: 728px
    }
}

@media(min-width: 801px) {
    .sidebar_ad {
        height:auto;
        width: 300px!important
    }
}

@media(min-width: 1160px) {
    .leaderboard_middle {
        height:90px!important;
        width: 728px!important
    }
}

.jcrop-widget .jcrop-handle {
    display: none;
    position: absolute;
    border: 1px rgba(127,127,127,.8)solid;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    background: rgba(255,255,255,.8)
}

.jcrop-widget .jcrop-handle.nw {
    top: -3px;
    left: -3px;
    cursor: nwse-resize
}

.jcrop-widget .jcrop-handle.w {
    top: 50%;
    transform: translateY(-50%);
    left: -3px;
    cursor: ew-resize
}

.jcrop-widget .jcrop-handle.sw {
    bottom: -3px;
    left: -3px;
    cursor: nesw-resize
}

.jcrop-widget .jcrop-handle.ne {
    top: -3px;
    right: -3px;
    cursor: nesw-resize
}

.jcrop-widget .jcrop-handle.e {
    top: 50%;
    transform: translateY(-50%);
    right: -3px;
    cursor: ew-resize
}

.jcrop-widget .jcrop-handle.se {
    bottom: -3px;
    right: -3px;
    cursor: nwse-resize
}

.jcrop-widget .jcrop-handle.n {
    left: 50%;
    transform: translateX(-50%);
    top: -3px;
    cursor: ns-resize
}

.jcrop-widget .jcrop-handle.s {
    left: 50%;
    transform: translateX(-50%);
    bottom: -3px;
    cursor: ns-resize
}

.jcrop-widget.active .jcrop-handle {
    display: block
}

.jcrop-widget {
    position: absolute;
    box-sizing: border-box;
    border: 1px #fff dashed;
    opacity: .7;
    background: 0 0;
    transition: opacity 1s;
    padding: 0;
    margin: 0;
    cursor: move
}

.jcrop-widget:hover {
    transition: opacity .8s;
    opacity: .8
}

.jcrop-widget:focus {
    transition: opacity .5s;
    opacity: 1;
    outline-style: auto;
    outline-width: 3px;
    outline-color: rgba(0,0,0,.3)
}

.jcrop-shade {
    background: rgba(0,0,0,.5);
    transition: opacity .4s,background-color .7s;
    position: absolute
}

.jcrop-shade.l {
    top: 0;
    left: 0;
    height: 100%
}

.jcrop-shade.r {
    top: 0;
    right: 0;
    height: 100%
}

.jcrop-shade.t {
    top: 0
}

.jcrop-shade.b {
    bottom: 0
}

.jcrop-stage {
    position: relative;
    width: 100%
}

.jcrop-image-stage img {
    position: absolute
}

.jcrop-ux-inactive-handles .jcrop-widget .jcrop-handle {
    display: block
}

.jcrop-widget img {
    width: 100%;
    height: auto
}

.jcrop-ux-fade-more .jcrop-widget {
    opacity: .25
}

.jcrop-ux-fade-more .jcrop-widget:hover {
    transition: opacity .4s;
    opacity: .8
}

.jcrop-ux-fade-more .jcrop-widget:focus {
    transition: opacity .5s;
    opacity: 1;
    outline-style: auto;
    outline-width: 3px;
    outline-color: rgba(0,0,0,.3)
}

.jcrop-ux-fade-more .jcrop-widget {
    opacity: .25
}

.jcrop-ux-fade-more .jcrop-widget:hover {
    opacity: .65
}

.jcrop-ux-keep-current .jcrop-widget.active {
    opacity: 1;
    outline-style: auto;
    outline-width: 3px;
    outline-color: rgba(0,0,0,.3)
}

.jcrop-ux-no-outline .jcrop-widget {
    outline: none!important
}

.jcrop-disable.jcrop-stage {
    opacity: .8
}

.jcrop-disable.jcrop-stage .jcrop-widget {
    outline: none!important
}
